<div class="simplemodal-wrap">
    
    <div id="cart" class="cart_modal">
        <div class="cart_info clearfix">
            <h2>您的购物车共有<strong id="cart_num"><span class="headerCartItemsCount" th:text="${cart.itemCount}" /></strong>件商品</h2>
            <div class="cart_account">
                <span>已选商品<small>（含运费）</small><strong th:unless="${cart.subTotal?.zero}" blc:fsprice="${cart.total}"></strong>元</span>
                <a th:href="@{/checkout}" target="_top">
                        <span th:text="#{cart.checkout}">Checkout</span>
                    </a>
            </div>
        </div>
        <div th:fragment="title" th:inline="text" style="display: none;">[[#{pageTitle.cart}]] - [[#{pageTitle.title}]]</div>
        
        <div class="cart_table">
            <table th:substituteby="cart/partials/cartProductsTable"></table>
        </div>

        <div id="cart_total" class="group clearfix">
            <div class="all_account">
                <h3>
                    <span id="orderDiscounts" th:unless="${cart.orderAdjustmentsValue.zero}">
                        <span th:text="#{cart.orderDiscount}">Order Discount: </span><span blc:fsprice="${cart.orderAdjustmentsValue}" />
                    </span>
                    <span th:text="#{cart.currentSubtotal}">Your Current Subtotal</span><strong th:unless="${cart.subTotal?.zero}" blc:fsprice="${cart.total}"></strong>
                </h3>
                <p>(<span th:text="#{cart.subtotalDisclaimer}">Subtotal does not yet include applicable tax or shipping and handling charges</span>)</p>
                <div id="checkout">
                    <a th:href="@{/checkout}" target="_top" class="big-button red-button">
                        <span th:text="#{cart.checkout}">Checkout</span>
                    </a>
                </div>
                <a class="buy_continue" href="javascript:window.history.go(-1);" target="_top">&laquo; <span th:text="#{cart.continueShopping}">Continue Shopping</span></a>
            </div>
        </div>
        <p class="error" th:if="${param.errorMessage}" th:text="${param.errorMessage[0]}"></p>
        <div id="blc-extra-data" class="hidden" th:utext="${blcextradata}" th:if="${!#strings.isEmpty(blcextradata)}"></div>

    </div>
</div>
